import { h } from '../../lib/min-vue.esm.js'
export const foo = {
  name: 'foo',
  setup(props, { emit }) {
    const addClick = () => {
      // console.log('addClick')
      emit('add-foo', 1, 2)
    }
    return { addClick }
  },
  render() {
    const btn = h(
      'button',
      {
        onClick: this.addClick
      },
      'addClick'
    )
    return h('div', {}, [btn])
  }
}
